FROM openjdk:8-jdk-alpine
MAINTAINER didi
EXPOSE 5000
VOLUME ["/gulimall-member"]
COPY ./target/gulimall_member.jar gulimall_member.jar
ENV TZ=Asia/Shanghai
RUN sh -c 'touch /gulimall_member.jar' && ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
ENTRYPOINT ["java","-jar","/gulimall_member.jar", "&"]